package com.jymj.dao;

import com.jymj.entity.KeyValueEntity;
import com.jymj.entity.dto.ApplyDto;
import com.jymj.entity.zjd.ApplyFileEntity;
import com.jymj.entity.zjd.ApplyLandEntity;
import com.jymj.entity.zjd.ApplyLandFile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by ${lc} on 2021/9/1.
 */
@Mapper
public interface ApplyLandDao {
    void saveEntity(ApplyLandEntity applyLandEntity);

    void saveFile(ApplyLandFile applyLandFile);

    ApplyLandFile queryObject(Integer id);

    void deleteFile(Integer id);

    List<ApplyLandEntity> queryList(ApplyDto applyDto);

    List<ApplyLandEntity> queryById(Integer id);

    List<ApplyLandEntity> queryByYlId(Integer objectid);

    void updateFile(ApplyLandFile applyLandFile);

    void delete(@Param("ids") Integer... ids);

    void update(ApplyLandEntity applyLandEntity);

    List<ApplyFileEntity> queryFiles(Integer id);

    void updateFw(@Param("applyid") Integer applyid, @Param("landid") Integer landid);

    KeyValueEntity queryStatistical(ApplyDto applyDto);

    List<KeyValueEntity> getSummary(ApplyDto applyDto);

    List<ApplyLandEntity> getAll(@Param("ids") Integer[] ids, @Param("type") Integer type);
}
